Bentley Map V8i (SELECTseries 10) Help

EXPORT

Syntax: EXPORT variable

When doing spatial analysis, call one script from within another script using a spatial operator (INSIDE, OUTSIDE, NEAR, etc.). The variables from the calling script are visible to the called script but any changes made are only local to the called script. To make these changes global, export the value back to the calling script using the EXPORT command.

In this example a script called Shape is first executed. This script only evaluates elements of type shape. When a shape is found, this script uses the spatial operator INSIDE when calling the CountPoints script; this means that the CountPoints script is only evaluating elements that are within the current shape. Notice how the EXPORT command is being used in the CountPoints script in order to transfer the value back to the Shape script.